package cn.imnaer.service.persistence.model.factory;

import cn.imnaer.service.persistence.model.FriendCircle;
import cn.imnaer.service.persistence.model.SharePhoto;
import cn.imnaer.service.rpc.enums.EnumFriendCircleType;
/**
 * 
 * 
 * 
 * @author Administrator
 *
 */
public class FriendCircleBeanFactory {
	

	/**
	 * 
	 * @param sharePhoto
	 * @return
	 */
	public  static  FriendCircle valueOf(SharePhoto  sharePhoto){
	 FriendCircle   friendCircle=	new FriendCircle();
	 friendCircle.setItemId(sharePhoto.getSharePhotoId());
	 friendCircle.setUserId(sharePhoto.getUserId());
	 friendCircle.setCreateTime(sharePhoto.getCreateTime());
	 friendCircle.setType(EnumFriendCircleType.SHARE_PHOTO.getValue());
	 return    friendCircle;
	}
	/**
	 * 
	 * @return
	 */
	public   FriendCircle   newInstance(){
		return	new FriendCircle();		
	}

}
